﻿using CoachingOrganizer.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoachingOrganizer.ClientAdapters.iOS.LocalStorage
{
    public class iOSDbManager : DbManagerBase
    {
        protected override SQLite.Net.Interop.ISQLitePlatform GetPlatform()
        {
            return new SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS();
        }

        protected override string GetDataFolder()
        {
            string folder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            return System.IO.Path.Combine(folder, "coaching.db");
        }
    }
}
